export default [
    {
        path: '/login',
        component: 'login/index',
        layout: false,
    },
    {
        path: '/ver',
        component: 'ver/index',
        layout: false,
    },
    {
        path: '/dashboard',
        component: 'dashboard/index',
        menu: { name: '工作台', icon: 'icon-dashboard' },
    },
    {
        path: '/project',
        menu: { name: '项目管理', icon: 'icon-cluster' },
        routes: [
            {
                path: '/project/task',
                component: 'project/task',
                menu: { name: '任务管理' },
            },
            {
                path: '/project/project',
                component: 'project/project',
                menu: { name: '项目管理' },
            },
        ],
    },
    {
        path: '/hr',
        menu: { name: '人力资源', icon: 'icon-team' },
        routes: [
            {
                path: '/hr/check',
                component: 'hr/check',
                menu: { name: '考勤报表' },
            },
            {
                path: '/hr/pre',
                component: 'hr/pre',
                menu: { name: '绩效管理' },
            },
        ],
    },
    {
        path: '/version',
        menu: { name: '版本管理', icon: 'icon-cloud-sync' },
        routes: [
            {
                path: '/version/pipeline',
                component: 'version/pipeline',
                menu: { name: '集成发布' },
            },
            {
                path: '/version/flow',
                component: 'version/flow',
                menu: { name: '迭代信息' },
            },
            {
                path: '/version/uat',
                component: 'version/uat',
                menu: { name: '测试环境' },
            },
            {
                path: '/version/branch',
                component: 'version/branch',
                menu: { name: '分支管理' },
            },
            {
                path: '/version/repo',
                component: 'version/repo',
                menu: { name: '仓库管理' },
            },
        ],
    },
    {
        path: '/base',
        menu: { name: '基础资料', icon: 'icon-idcard' },
        routes: [
            {
                path: '/base/user',
                component: 'base/user',
                menu: { name: '用户管理' },
            },
            {
                path: '/base/role',
                component: 'base/role',
                menu: { name: '角色权限' },
            },
            {
                path: '/base/company',
                component: 'base/company',
                menu: { name: '企业管理' },
            },
        ],
    },
    {
        path: '/config',
        component: 'config/index',
        menu: { name: '系统设置', icon: 'icon-setting' },
    },
    {
        path: '/',
        redirect: '/dashboard',
    },
    {
        component: './404',
    },
]
